package com.groupbuying.storeinternal.connector;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@Service
@FeignClient(name = "bus-customer")
public interface CoustomerFeign {
    @RequestMapping(value = "/customerWxinInfo/getMPOpenidByCode",method = RequestMethod.GET)
    public String getMPOpenidByCode(@RequestParam("code") String code);

    @GetMapping(value = "/customerWxinInfo/getOpenidByCode")
    public String getOpenidByCode(@RequestParam("code") String code);
}
